package com.abner.dome04;

import com.abner.dome02.UserService;
import com.abner.dome02.UserServiceImpl;

/**
 * @description:
 * @author: GUOYN
 * @create: 2024/5/13 14:45
 */
public class Client {
    public static void main(String[] args) {
        UserServiceImpl userService = new UserServiceImpl();
        ProxyInvocationHandler pih = new ProxyInvocationHandler();
        pih.setRent(userService);
        UserService proxy = (UserService) pih.getProxy();
        proxy.delete();
    }
}
